﻿using UnityEngine;

public class Request_UploadBaseInfo : RequestBase
{
    
    public const string NetRequest_UploadBaseInfo_Key = "UploadBaseInfo";

    public BaseInfoRequestData baseInfoReqData = new BaseInfoRequestData();

    protected override ISerialize requestData
    {
        get
        {
            return baseInfoReqData;
        }
    }

    public Request_UploadBaseInfo() : base()
    {
        MessagePacket.key = NetRequest_UploadBaseInfo_Key;
    }

    public override void OnSend()
    {
        base.OnSend();

        GameDebug.Log($"发送BaseInfo请求：{baseInfoReqData.userBaseInfoData}");
    }

    public override ResponseData NewResponseData() => new ImageUrlResponseData();

    //public override ResponseBase GetResponseHandler()
    //{
    //    return new Response_UploadBaseInfo();
    //}
}


//public class Response_UploadBaseInfo : ResponseBase
//{
//    public override ResponseData NewResponseData() => new ImageUrlResponseData();

//    public override void Excuate()
//    {
//        //GameDebug.LogShowy("Response_UploadBaseInfo -> Excuate");

//        var loginRequest = this.request as Request_UploadBaseInfo;

//        //Game.Instance.user = this.user;

//        if (loginRequest.onResponse != null)
//            loginRequest.onResponse(this);
//    }

//}
